package com.cxf.windex.biz;

import com.cxf.windex.base.biz.BaseBiz;
import com.cxf.windex.entity.JsBills;
import com.cxf.windex.mapper.JsBillsMapper;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chenxf
 * @date 3/15/2018
 * @description
 */
@Service
public class JsBillsBiz extends BaseBiz<JsBillsMapper, JsBills> {
   public List<String> selectName(String userId,String name,String payType){
     return mapper.selectName(userId,name,payType);
   }

  public String selectType(String userId,String yearMonth,String payType){
     String result=mapper.selectType(userId,yearMonth,payType);
     if(StringUtils.isBlank(result)){
       result="0";
     }
    return result;
  }
}
